using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.Shared;
namespace QLThuHocPhi
{
    public partial class FormHoadonSV : Form
    {
        public FormHoadonSV()
        {
            InitializeComponent();
        }
        private string mahoadon;

        public string Mahoadon
        {
            get { return mahoadon; }
            set { mahoadon = value; }
        }
        public string masinhvien;
        public string tensv;
        public string khoa;
        public string khoahoc;
        public string nhanvien;
        public string trangthai;
        public string sotien;
        public string monhoc;
        private void FormHoadonSV_Load(object sender, EventArgs e)
        {
            CrystalReport1 rp = new CrystalReport1();
            ParameterValues pv = new ParameterValues();
            ParameterDiscreteValue psv = new ParameterDiscreteValue();
            psv.Value = mahoadon;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtmahoadon"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = masinhvien;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtMasv"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = tensv;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtTen"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = khoa;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtKhoa"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = khoahoc;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtKhoahoc"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = nhanvien;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtNhanvien"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = trangthai;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtTrangthai"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = sotien;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtSotien"].ApplyCurrentValues(pv);

            psv = new ParameterDiscreteValue();
            psv.Value = monhoc;
            pv.Add(psv);
            rp.DataDefinition.ParameterFields["txtMon"].ApplyCurrentValues(pv);

            crystalReportViewer1.ReportSource = rp;
        }
    }
}